<template>
    <van-nav-bar left-text="返回" title="设备详情" left-arrow @click-left="onClickLeft">

    </van-nav-bar>
    <div>
        <div style="padding:0 18px 18px 0;display: flex;flex-direction: column;gap: 10px;">
            <van-cell-group>
                <van-field v-model="formState.assetTag" readonly="true" label="资产标签号:" />
                <van-field v-model="formState.equipmentName" readonly="true"  label="资产名称:" />
                <van-field v-model="formState.specificLocation" readonly="true"  label="具体位置:" />
                <van-field v-model="formState.responsiblePersonId" readonly="true"  label="责任人编号:" />
                <van-field v-model="formState.responsiblePersonName" readonly="true"  label="责任人姓名:" />
                <van-field v-model="formState.userId" readonly="true"  label="使用人编号:" />
                <van-field v-model="formState.userName" readonly="true"  label="使用人姓名:" />
                <van-field v-model="formState.locationCode" readonly="true"  label="地点编码:" />
                <van-field v-model="formState.locationDescription" readonly="true"  label="地点描述:" />
                <van-field v-model="formState.manufacturer" readonly="true"  label="生产厂商:" />
                <van-field v-model="formState.specificationModel" readonly="true"  label="规格型号:" />
                <van-field v-model="formState.assetNote" readonly="true"  label="资产名称备注:" />
                <van-field v-model="formState.remark" readonly="true"  label="备注:" />
            </van-cell-group>
        </div>
    </div>
</template>
<script setup>
import { useRoute } from "vue-router";
import { ref, onMounted } from "vue"
import EquipmentEditApi from "../equipmentEdit/api/equipmentEdit"
const formState = ref({})
const route = useRoute()
const onClickLeft = () => history.back();
onMounted(() => {
    EquipmentEditApi.equipmenttableDetail(route.query.id).then(res => {
        if (res.data.code == 200) {
            formState.value = Object.assign({}, res.data.data)
        }
    })
})
</script>
<style>
.groupTitle {
    width: 50%;
    font-weight: bold;
    color: #000;
}
</style>